package com.totoro.configuration.config;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@Configuration
@Order(2)
public class FshConfig2 implements CommandLineRunner{

    @Bean(name = "fshBean2")
    @ConfigurationProperties(prefix = "fsh")
    public FshBean fshBean(){
        FshBean fshBean2 = new FshBean();
        System.out.println("fshBean2 load...........");
        return fshBean2;
    }

    @Override
    public void run(String... strings) throws Exception {
        System.out.println("00000fshBean2 load...........");
    }
}
